<?php
basename($_SERVER["PHP_SELF"]) == 'inc.sales_tab.php' && exit('Invalid Access!');

//tab
$css="<link rel='stylesheet' type='text/css' href='".CSS_URL."/tab/tab".(USER_BROWSER=='msie'? "-ie" : "").".css' />\n";
$tab=
"<ul class='tabs-nav' id='_tab'>
  <li class='tabs-".($this_file==$vars['file']['member']['sales_list'] && !$get_s['v']? "" : "un")."selected' rel='purchase'><a href='".$vars['file']['member']['sales_list']."'><span>".__("Purchase History")."</span></a></li>
  <li class='tabs-".($this_file==$vars['file']['member']['sales_list'] && $get_s['v']=='u'? "" : "un")."selected' rel='purchase'><a href='".$vars['file']['member']['sales_list']."?v=u'><span>".__("Sales by You for Other Member")."</span></a></li>
</ul>
<div class='tabs-panel' style='width:97%;'><%tab_content%></div>";
?>